import request from '@/utils/request.js'

export const addclientservice = (data)=>{
  return request.post('/addClient',data)
}
export const updatecilentservice = (data)=>{
  return request.put('/updateClient',data)
}
export const deleteclientservice = (data)=>{
  return request.delete('/deleteClient?id=' + data)
}
export const getpartclientservice = (data) => {
  return request.post('/getClient', data);
}

export const addkeymanservice = (data)=>{
  return request.post('/addKeyMan?clientcompanyid='+data.clientcompanyid,data);
}
export const updatekeymanservice = (data)=>{
  return request.put('/updateKeyMan',data);
}
export const getpartkeymanservice = (data)=>{
  return request.get('/getKeyMan?str='+data.str+'&clientcompanyid='+data.clientcompanyid)
}
export const getKeyManByID = (data)=>{
  return request.get('/getKeyManByID?id='+data);
}





export const getallclientservice = () => {
  return request.get('/getAllClient');
}
export const getClientsComesByClientCompanyidservice = (data) => {
  return request.get('/getClientsComesByClientCompanyid?str='+data.str+'&clientcompanyid='+data.clientcompanyid)
}

export const addclientcomeservice = (data) => {
  return request.post('/addClientCome',data)
}
export const getAllUserForClientComeAddservice = () => {
  return request.get('/getAllUserForClientComeAdd')
}
export const updateclientcomeservice = (data) => {
  return request.put('/updateClientCome',data);
}
